
 
 D C . t o g g l e ( o p t i o n a l C a l l b a c k F u n c t i o n ) 
 
 
 
 D e s c r i p t i o n :   T o g g l e s   t h e   D C   o b j e c t   b e t w e e n   r e n d e r   o r   r e m o v e   a n d   e x i c u t e s   r e l e v a n t   l i f e c y c l e   m e t h o d s . 
 
 
 
 R e t u r n s :   D C   O b j e c t . 
 
 
 
 N o t e :   A n   o p t i o n a l   f u n c t i o n   c a n   b e   p a s s e d   a s   t h e   f i r s t   p a r a m e t e r   t o   e x e c u t e   a   t e m p o r a r y   o n e - t i m e   c a l l b a c k   a f t e r   t h e   r e n d e r i n g   o r   r e m o v a l   p r o c e s s   c o m p l e t e s . 
 
 
 
 E x a m p l e : 
 
 
 
 D C . t o g g l e ( ) ; 
 
 
 
 / /   T o g g l e   t h e   D C   o b j e c t   c o n t e n t   a n d   e x e c u t e   a   o n e - t i m e   c a l l b a c k . 
 
 D C . t o g g l e ( f u n c t i o n ( )   { 
 
     / /   D o   s t u f f . 
 
     a l e r t ( D C . i d ) ; 
 
 } ) ; 
 
 